#define _CRT_SECURE_NO_WARNINGS
#include"SLlist.h"

void test_SLlist()
{
	SL* plist_primary = NULL;
	SLlist_pushback(&plist_primary, 1);
	SLlist_popback(&plist_primary);
	SLlist_pushback(&plist_primary, 2);
	SLlist_pushback(&plist_primary, 3);
	SLlist_pushback(&plist_primary, 4);
	SLlist_popback(&plist_primary);
	SLlist_pushback(&plist_primary, 5);
	SLlist_pushback(&plist_primary, 6);
	SLlist_print(plist_primary);
	SLlist_pushfront(&plist_primary, 0);
	SLlist_print(plist_primary);
	SL* pop_1 = SLlist_find(plist_primary, 0);
	if (pop_1)
	{
		SLlist_insert(&plist_primary, pop_1, 666);
	}
	SLlist_print(plist_primary);
	SL* pop_2 = SLlist_find(plist_primary, 666);
	if (pop_1)
	{
		SLlist_erase(&plist_primary, pop_2);
	}
	SLlist_print(plist_primary);

}

int main()
{
	test_SLlist();

	return 0;
}